﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CinemaDbLib;
using CinemaProject;

namespace CinamaProject
{
    public class RoomCtrl : WcfServiceLibrary1.Ctrl.IRoomCtrl
    {
        private RoomDB roomDB;

        public RoomCtrl()
        {
            roomDB = new RoomDB();
        }

        public List<Room> getRooms()
        {
            return roomDB.getRooms();
        }

        public Room getRoomById(int id)
        {
            return roomDB.getRoomById(id);
        }
    }
}